home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
676-700
/
676
/
fbm
/
fbm10man.zoo
/
MAN
/
fbquant.man
< prev
next >
Wrap
Text File
|
1990-12-18
|
4KB
|
133 lines
FBQUANT(1) 25-Jun-90 FBQUANT(1)
3
1mNAME
0mfbquant \- quantize a 24 bit color image
1mSYNOPSIS
0mfbquant [ -c<numcolors> ] [ -<type> ] [ -m<map> ] < rgb-image > mapped-image
1mDESCRIPTION
0mConverts a 3 plane red-green-blue color image into a
mapped color image. Uses Heckbert's adaptive partitioning
color quantizing algorithm. It is strongly suggested that
you make the number of colors used a power of 2, but not
necessary for proper operation of FBM.
If you wish to requantize an image that is already mapped
(for example, to reduce the number of colors), use "gray2clr
-u" to unmap the image first. This unmapping step is also
necessary to resize a color image using fbext(1).
You may specify a particular color map with the -1mm 0moption.
The argument is another mapped color image.
Note that even if you specify fewer than 256 colors, some
output formats (SUN and FBM) will still use 8 bits to store
each color index. The color map will be the specified
length.
1mOPTIONS
0m-1mc0m<1mnum0m> 3mnumber of colors 0mto use for dithering. The range is
8 to 256, and the default is 256.
-1mm0m<1mmap0m> 3mcolormap 0moption, specifies that the colormap from
the 3mmap 0mimage is to be used to quantize he input. Colormaps
may be efficiently stored by extracting very small
rectangles from another color image:
% fbext 0 0 1 1 < image.clr > map.clr
which stores a 1 pixel image with the desired map.
-1mF 0m3mFBM, 0mformat (by default, the default). You are
guaranteed not to lose information by specifying FBM as the
default.
-1mG 0m3mGIF, 0mCompuserve GIF format.
-1mI 0m3mIFF 0mformat, interleaved bitmaps (ILBM), used by Amigas.
It is recommended that you use 16 or 32 colors, because the
EL Arts code limits IFF files to 6 planes, and most Amiga
software cannot handle more than 32 colors anyway.
-1mS 0m3msun, 0mSun rasterfiles (not run length encoded).
-1-
FBQUANT(1) 25-Jun-90 FBQUANT(1)
1mEXAMPLE
0mTo convert a 24 bit Sun rasterfile to an 8 bit mapped
color rasterfile:
% fbquant -S < foo.24bit > foo.clr
To convert a 24 bit Sun rasterfile to a 32 color Amiga
image:
% fbext -a1.2 -w320 < foo.24bit | \
fbquant -I -c32 > foo.iff
To convert an FBM format RGB color image to a 16 color GIF
image:
% fbext -a1.2 -w320 < foo.24bit | \
fbquant -G -c16 > foo.gif
1mSEE ALSO
0mfbm(1) for general discussion, pbm(1) for PBM routines.
1mBUGS
0mNone known.
1mHISTORY
0mCopyright (C) 1989,1990 by Michael Mauldin. Permission is
granted to use this file in whole or in part for any
purpose, educational, recreational or commercial, provided
that this copyright notice is retained unchanged. This
software is available to all free of charge by anonymous FTP
and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlmcs.cmu.edu
07-Mar-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.9) mlmcs.cmu.edu
-2-